package com.dx.financehy.modules.platformClassTwo.mapper;

import com.dx.financehy.base.CommonMapper;
import com.dx.financehy.modules.platformClassTwo.domain.PlatformClassTwo;
import com.dx.financehy.modules.platformClassTwo.domain.dto.AddPlatformClassTwoDTO;
import com.dx.financehy.modules.platformClassTwo.domain.dto.EditPlatformClassTwoDTO;
import com.dx.financehy.modules.platformClassTwo.domain.dto.GetPlatformClassTwoDTO;
import com.dx.financehy.modules.system.domain.dto.IsProcessListDTO;
import com.dx.financehy.modules.system.domain.vo.IsProcessListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: huang_jigao
 * @Title: PlatformClassTwoMapper
 * @ProjectName: financehy
 * @Description:
 * @date: 2024-05-14 15:18
 */
@Mapper
public interface PlatformClassTwoMapper extends CommonMapper<PlatformClassTwo> {

    /**
     * 获取平台资源二级列表
     *
     * @param dto
     * @return
     */
    List<PlatformClassTwo> getPlatformClassTwoList(@Param("dto") GetPlatformClassTwoDTO dto);

    int addPlatformClass(@Param("list") List<AddPlatformClassTwoDTO> twoDTOS,
                         @Param("userId") String userId,
                         @Param("createTime") Date createTime);

    int editPlatformClass(@Param("list") List<EditPlatformClassTwoDTO> twoDTOS,
                         @Param("userId") String userId,
                         @Param("updateTime") Date updateTime);

    List<IsProcessListVO> getTwoProcessListList(@Param("dto") IsProcessListDTO dto);
}
